package com.dragon.pear.models.result;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品图片关联 响应结果
 * Explain:
 * 
 */
@Schema(description = "商品图片关联 请求响应结果")
public class TradeGoodsImageResult {
    @Schema(description = "ID", example = "1")
    private long id;
    @Schema(description = "商品编码", example = "1")
    private long code;
    @Schema(description = "图片URL", example = "字符串")
    private String imgUrl;
    @Schema(description = "图片类型 0 - 主图,1 - 图标,2 - 轮播图,3 - 详情图片,4 - 活动展示图", example = "1")
    private int type;

    // 无参构造方法
    public TradeGoodsImageResult() {
    }

    // 全参数构造方法
    public TradeGoodsImageResult(long id, long code, String imgUrl, int type) {
        this.id = id;
        this.code = code;
        this.imgUrl = imgUrl;
        this.type = type;
    }

    // 全参数create生成器
    public static TradeGoodsImageResult create(long id, long code, String imgUrl, int type) {
        return new TradeGoodsImageResult(id, code, imgUrl, type);
    }

    // 全参数of生成器
    public static TradeGoodsImageResult of(long id, long code, String imgUrl, int type) {
        return new TradeGoodsImageResult(id, code, imgUrl, type);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public TradeGoodsImageResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public TradeGoodsImageResult setCode(long code) {
        this.code = code;
        return this;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public TradeGoodsImageResult setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
        return this;
    }

    public int getType() {
        return type;
    }

    public TradeGoodsImageResult setType(int type) {
        this.type = type;
        return this;
    }

    // endregion Getter和Setter方法
}
